import { postForm, get } from '@/utils/request'

export function login(userName, password) {
  return postForm('/poly/user/login/normal/name', { name: userName.trim(), pwd: password })
}

export function getInfo(token) {
  return get('/poly/user/info/token')
}

export function logout() {
  return get('/poly/user/logout/token')
}
